import {MockMethod} from 'vite-plugin-mock'
import {baseApi} from "../../config"

export default [
    {
        url: `${baseApi}/system/dict/data/getDictData`,
        //params:{dictType:'sys_show_hide',defaultValue:''},
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "info": {
                        "name": "菜单状态",
                        "remark": "菜单状态"
                    },
                    "values": [
                        {
                            "key": "0",
                            "value": "显示",
                            "isDefault": 1,
                            "remark": ""
                        },
                        {
                            "key": "1",
                            "value": "隐藏",
                            "isDefault": 0,
                            "remark": ""
                        }
                    ]
                }
            }
        }
    },
    {
        url: `${baseApi}/system/dict/data/list`,
        method: 'get',
        response: () => {
            return {}
        }
    },
    {
        url: `${baseApi}/system/dict/data/get`,
        method: 'get',
        response: () => {
            return {}
        }
    },
    {
        url: `${baseApi}/system/dict/data/add`,
        method: 'post',
        response: () => {
            return {}
        }
    },
    {
        url: `${baseApi}/system/dict/data/edit`,
        method: 'put',
        response: () => {
            return {}
        }
    },
    {
        url: `${baseApi}/system/dict/data/delete`,
        method: 'delete',
        response: () => {
            return {}
        }
    }
] as MockMethod[]
